import request from '@/utils/request'

export default {
    // 获取教工信息分页
    jwJzgxxPage(data) {
        return request({
            url: '/biz/jzgxx/page',
            method: 'GET',
            data: data
        })
    },
    // 提交教工信息表单 add为false时为编辑，默认为新增
    jwJzgxxSubmitForm(data, add = true) {
        return request({
            url: '/biz/jzgxx/'+ (add ? 'add' : 'edit'),
            method: 'POST',
            data: data
        })
    },
    // 删除教工信息
    jwJzgxxDelete(data) {
        return request({
            url: '/biz/jzgxx/delete',
            method: 'POST',
            data: data
        })
    },
    // 获取教工信息详情
    jwJzgxxDetail(data) {
        return request({
            url: '/biz/jzgxx/detail',
            method: 'GET',
            data: data
        })
    },
}
